package com.yu.shaungxuan.utils;


import com.yu.shaungxuan.model.entity.Student;
import com.yu.shaungxuan.model.entity.Teacher;

public class StudentHolder {
    private static final ThreadLocal<Student> tl = new ThreadLocal<>();

    public static void saveStudent(Student student){
        tl.set(student);
    }

    public static Student getStudent(){
        return tl.get();
    }

    public static void removeStudent(){
        tl.remove();
    }
}
